package com.infore.airsupervise.utils;

/**
 *  点击工具类
 *
 * @features: feature
 * @author: Ding Xinlin
 * @date: 2016/12/22 10:19
 */

public class ClickUtil {

    private static long lastClickTime;

    /**
     * 是否重复点击
     * @return
     */
    public static boolean isRepeatClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if (0 < timeD && timeD < 1000) {
            return true;
        }
        lastClickTime = time;
        return false;
    }

}
